import Vue from 'vue'
import VueRouter from "vue-router"
import City from "../components/City.vue"
import Now from "../components/Now.vue"
import Coming from "../components/Coming.vue"
import Serach from "../components/Serach.vue"
import MovieView from "../views/MovieView.vue"
import CinemaView from "../views/CinemaView.vue"
import MineView from "../views/MineView.vue"
Vue.use(VueRouter)
export default new VueRouter({
	mode:"history",
    routes:[
		{
			path:"/",
			redirect:"mine"
		},
		{
			path:"/movie",
			component:MovieView,
			children:[
				{
					path:"/",
					redirect:"city"
				},
				{
					path:"city",
					component:City
				},
				{
					path:"now",
					component:Now
				},
				{
					path:"coming",
					component:Coming
				},
				{
					path:"serach",
					component:Serach
				}
			]
		},
		{
			path:"/cinema",
			component:CinemaView
		},
		{
			path:"/mine",
			component:MineView
		},
	]
})